how to set golang env on centos7

export GOPROXY=https://mirrors.aliyun.com/goproxy/ #go env -w GOPRIVATE=*.chenshi.de,*.kenshi.org
export GOPATH=/go_extras/
export GOROOT=/usr/local/go/
export GO111MODULE=auto